<h3>Périodes</h3>

	<table id='periode'>
	<thead>
		<tr>
			<th>Situation</th>
			<th>Début</th>
			<th>Fin</th>
			<th>Salaire</th>
			<th>ARRCO</th>
			<th>AGIRC</th>
			<th>Documents</th>
		</tr>
	</thead>
	<tbody>
	<?php 
		$i=0;
		foreach($this->Periodes as $periode) : ?>
		<tr>
			<td><?php echo $this->escape($periode->Nom_Entreprise);?></td>
			<td><?php $datedeb = explode(" ",$this->escape($periode->Date_debut)); 
					  echo trim($datedeb[0]);?></td>
			<td><?php $datefin = explode(" ",$this->escape($periode->Date_fin)); 
					  echo trim($datefin[0]);?></td>
			<td><?php echo $this->escape($periode->Salaire_percu);?></td>
			<td><?php echo $this->escape($periode->Points_ARRCO);?></td>
			<td><?php echo $this->escape($periode->Points_AGIRC);?></td>
			<td><a href="<?php echo $this->url(array('controller'=>'Document','action'=>'afficher-Documents', 'id_periode'=>$periode->Id_periode));?>">Voir</a></td>
		</tr>
		<?php 
			$i++;
			endforeach; ?>
		</tbody>
	
	</table>
	
<br />

<script type="text/javascript"> 
		$(function () {
			tableToGrid("#periode", {height:'auto',width:'650', colsize:'auto',caption: 'Liste des périodes composant votre carrière'});;
			$("#periode").jqGrid('gridResize',{minWidth:300,maxWidth:800,minHeight:100, maxHeight:800});
		});
</script>
	

